<script lang="ts" setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter();

import homeModelThreeUtil from "./homeModelThreeUtil.vue";
import homeModelTwoUtil from "./homeModelTwoUtil.vue";

const props = defineProps({
  loveProduct: {
      type: Array
    }
});
</script>
<template>
  <section class="homeProductModelThreeUtil" v-if="props.loveProduct">
    <div class="title"></div>
    <div class="content">
      <div class="content-top">
        <homeModelThreeUtil :product="props.loveProduct[0]"></homeModelThreeUtil>
        <homeModelThreeUtil :product="props.loveProduct[1]" :borderR="false"></homeModelThreeUtil>
      </div>
      <div class="content-top">
        <homeModelThreeUtil :product="props.loveProduct[2]"></homeModelThreeUtil>
        <homeModelThreeUtil :product="props.loveProduct[3]" :borderR="false"></homeModelThreeUtil>
      </div>
      <div class="content-bottom">
        <homeModelTwoUtil :product="props.loveProduct[4]"></homeModelTwoUtil>
        <homeModelTwoUtil :product="props.loveProduct[5]"></homeModelTwoUtil>
        <homeModelTwoUtil :product="props.loveProduct[6]"></homeModelTwoUtil>
        <homeModelTwoUtil :product="props.loveProduct[7]" :borderR="false"></homeModelTwoUtil>
      </div>
    </div>
  </section>
</template>

<style lang="less" scoped>
.homeProductModelThreeUtil {
  width: 3.75rem;
  background: white;
  .title {
    height: .35rem;
    background: url("../../../assets/images/model-icon-1.png") no-repeat center;
    background-size: contain;
    background-color: #f6f6f6;
  }
  .content-top {
    display: flex;
    justify-content: center;
    position: relative;
    &:after {
      width: 100%;
      content: "";
      height: .0rem;
      border-top: .01rem solid transparent;
      position: absolute;
      background: #f5f5f5;
      bottom: 0;
      right: 0;
      // -webkit-transform: scaleX(.5);
      // transform: scaleX(.5);
      z-index: 10;
    }
  }
  .content-bottom {
    display: flex;
    justify-content: center;
    position: relative;
    &.borderB:after {
      width: 100%;
      content: "";
      height: .0rem;
      border-top: .01rem solid transparent;
      position: absolute;
      background: #f5f5f5;
      bottom: 0;
      right: 0;
      // -webkit-transform: scaleX(.5);
      // transform: scaleX(.5);
      z-index: 10;
    }
  }
}
</style>

